package view;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JButton;
import java.awt.Font;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.JLabel;
import javax.swing.JSeparator;

public class FrmSelecionaAluguel extends JFrame {

	private JPanel contentPane;
	private JButton btnPesquisarHospede;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					FrmSelecionaAluguel frame = new FrmSelecionaAluguel();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public FrmSelecionaAluguel() {
		setTitle("Aluguel");
		setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		setBounds(100, 100, 279, 416);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JButton btnCadastrarAluguel = new JButton("Cadastrar Aluguel");
		btnCadastrarAluguel.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				JFrameCadAluguel formCad = new JFrameCadAluguel();
				formCad.setVisible(true);
			}
		});
		btnCadastrarAluguel.setFont(new Font("Tahoma", Font.PLAIN, 21));
		btnCadastrarAluguel.setBounds(10, 11, 241, 86);
		contentPane.add(btnCadastrarAluguel);
		
		btnPesquisarHospede = new JButton("Por H\u00F3spede");
		btnPesquisarHospede.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				JFrameBuscaAluguelHospede formCad = new JFrameBuscaAluguelHospede();
				formCad.setVisible(true);
			}
		});
		btnPesquisarHospede.setFont(new Font("Tahoma", Font.PLAIN, 21));
		btnPesquisarHospede.setBounds(10, 176, 241, 89);
		contentPane.add(btnPesquisarHospede);
		
		JLabel lblPesquisarAluguis = new JLabel("Pesquisar Alugu\u00E9is");
		lblPesquisarAluguis.setFont(new Font("Tahoma", Font.PLAIN, 21));
		lblPesquisarAluguis.setBounds(10, 121, 241, 44);
		contentPane.add(lblPesquisarAluguis);
		
		JSeparator separator = new JSeparator();
		separator.setBounds(10, 108, 241, 2);
		contentPane.add(separator);
		
		JButton btnPesquisaQuarto = new JButton("Por Quarto");
		btnPesquisaQuarto.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				JFrameBuscaAluguelQuarto fromQuarto = new JFrameBuscaAluguelQuarto();
				fromQuarto.setVisible(true);
			}
		});
		btnPesquisaQuarto.setFont(new Font("Tahoma", Font.PLAIN, 21));
		btnPesquisaQuarto.setBounds(10, 276, 241, 89);
		contentPane.add(btnPesquisaQuarto);
	}
}
